﻿#define _CRT_SECURE_NO_WARNINGS
#include"Stack.h"


void test1()
{
	ST st;
	STInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);

	//StackPop(&st);
	//StackPop(&st);
	//StackPop(&st);
	//StackPop(&st);
	//StackPop(&st);

	while (!StackEmpty(&st))
	{
		//È¡Õ»¶¥ÔªËØ
		STDataType top = StackTop(&st);
		printf("%d ", top);
		StackPop(&st);
	}

	STDestroy(&st);
}

int main()
{
	test1();
	return 0;
}